package edu.sctu.zcy.month201505.day20150517;

/**
 * Created by user24 on 2015/5/17.
 */
public class Student implements Comparable<Student>{
    /*
    创建另一个类老师所教学生Student，该类有学号，姓名，成绩，年龄，性别，住址。
     */
    private int studentID;
    private String name;
    private String score;
    private int age;
    private String sex;
    private String address;

//    public String getDistrict() {
//        return district;
//    }
//
//    public void setDistrict(String district) {
//        this.district = district;
//    }
//
//    private String district;



    public boolean is_sanHao = false;
//
//    public TextCourse[] textCourses = new TextCourse[3];
//    public TextCourse[] setCourseOne(){
//
//        TextCourse textCourse = new TextCourse();
//        textCourse.course1[0] = "java";
//        textCourse.course1[1] = "大学英语";
//        textCourse.course1[2] = "数据结构";
//        textCourses[0] = textCourse;
//
//
//        TextCourse textCourse1 = new TextCourse();
//        textCourse1.course1[0]  = "大学计算机";
//        textCourse1.course1[1] = "大学英语";
//        textCourse1.course1[2] = "高等数学";
//        textCourses[1] = textCourse1;
//
//        TextCourse textCourse2 = new TextCourse();
//        textCourse2.course1[0] = "高等数学";
//        textCourse2.course1[1] = "大学英语";
//        textCourse2.course1[2] = "大学语文";
//        textCourses[2] = textCourse2;
//
//    return  textCourses;
//
//    }
//

//    TextCourse[] textCourses = new TextCourse[3];


    public Student(int studentID,String name,String score,int age,String sex,String address){
        this.studentID = studentID;
        this.name = name;
        this.score = score;
        this.age = age;
        this.sex = sex;
        this.address = address;
//        this.district = district;
    }

    public int getStudentID() {
        return studentID;
    }

    public String getName() {
        return name;
    }

    public String getScore() {
        return score;
    }

    public int getAge() {
        return age;
    }

    public String getSex() {
        return sex;
    }

    public String getAddress() {
        return address;
    }

    @Override
    public int compareTo(Student o) {
        return this.score.compareTo(o.score);
    }
}
